pbm2ps [ -s ] [ scale ] < pbm > postscript
This is an enhanced version of Poskanzer's pbmtops command that includes an option to generate "bare" files for including in documents (the -s or scribe option). It also prints the title at the top, if there is one attached to the image.
The scale if given must be an integer number which indicates how many output dots (at 300 dpi) are used to render a single pixel. The default is 1.
Given a 480 by 600 pixel bitmap, create a postscript file with the largest integral scaling factor that fits on a regular page:
% pbm2ps < foo.1bit > foo.PS
Given the same bitmap, create a postscript file with each input pixel represented by a 2x2 block of 300 dpi pixels on the output page (scaling factor 2):
% pbm2ps 2 < foo.1bit > foo.PS
Note that the resulting image will be 3.2 inches wide and 4 inches tall (pixels * scale / 300 dpi).
Create the same image, but don't include document structuring commands (this allows the file to be included in other documents by formatters such as Scribe and TeX).
% pbm2ps -s 2 < foo.1bit > foo.PS